<?php
	include './header.php';
?>

<div class="login_main">
	<h1>用户登录</h1>
	<span class="span1"><a href="<?php echo URL;?>/reg.php" style="color:#E31256;">注册有惊喜哦</a></span>
	<br/>
	<form action="<?php echo URL;?>/action.php?a=login" method="post">
		<label>
			<input type="text" name="username" placeholder="用户名"/>
			<span>请输入用户名</span>
		</label>
		<label>
			<input type="password" name="pwd" placeholder="密码"/>
			<span>请输入密码</span>
		</label>
		<label>
			<input type="text" name="yzm" placeholder="请输入验证码"/> &nbsp;
			<img src="<?php echo URL;?>/yzm/func.php" onclick="change(this)" alt="加载验证码失败"/>
			<script type="text/javascript">
			function change(obj)
			{
				obj.src=obj.src+'?id='+Math.random();
			}
			</script>
		</label>
		<input type="submit" value="登录" class="button" />
	</form>
</div>

<?php 
	include './footer.php';
?>